<template>
	<view class="">
		<uni-popup ref="popup" type="bottom" background-color="#fff" borderRadius="20rpx 20rpx 0 0">
			<view class="popup-wrap">
				<view class="popup-header">
					<view class="popup-header-title">
						<text>催单</text>
					</view>
					<view class="popup-header-close" @click="close">
						<image :src="$img_path('/home/icon-close.png')" mode="widthFix"></image>
					</view>
				</view>
				<view class="popup-content">
					<view class="popup-content-list">
						<view class="success-image">
							<image :src="$img_path('/home/order/pay-success.png')" mode="widthFix"></image>
						</view>
						<view class="text-tip">
							<text>已为您催单</text>
							<br/>
							<text>平台将尽快安排服务人员，请您耐心等待</text>
						</view>
					</view>
					<view class="popup-btns">
						<view class="popup-btn confirm-btn common-btn-bg-color" @click="confirm">
							<text>确定</text>
						</view>
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		props: {
			
		},
		data() {
			return {
				
			}
		},
		methods: {
			open() {
				this.$refs.popup.open()
			},
			
			close() {
				this.$refs.popup.close()
			},
			
			confirm() {
				this.close()
			}
		}
	}
</script>

<style scoped lang="scss">
	.popup-wrap {
		padding: 36rpx 22rpx 68rpx 22rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		position: relative;
		image {
			width: 100%;
			height: 100%;
		}
		
		view {
			box-sizing: border-box;
		}
	}
	
	.popup-header {
		display: flex;
		align-items: center;
	}
	
	.popup-header-title {
		flex: 1;
		text-align: center;
		font-weight: bold;
		font-size: 36rpx;
		color: #333333;
	}
	
	.popup-header-close {
		// position: absolute;
		width: 32rpx;
		height: 32rpx;
	}
	
	.popup-content {
		margin-top: 46rpx;
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	
	.popup-content-list {
		height: 650rpx;
		padding-bottom: 164rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}
	
	.success-image {
		width: 200rpx;
		height: 200rpx;
		margin-bottom: 78rpx;
	}
	
	.text-tip {
		text-align: center;
		line-height: 50rpx;
	}
	
	.popup-btns {
		width: 100%;
		height: 164rpx;
		background: #FFFFFF;
		box-shadow: 0rpx -4rpx 8rpx 2rpx rgba(0,0,0,0.05);
		position: absolute;
		bottom: 0;
		left: 0;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		padding: 12rpx 20rpx;
		padding-bottom: 60rpx;
	}
	
	.popup-btn {
		width: 100%;
		height: 96rpx;
		background: #F8F8F8;
		border-radius: 80rpx 80rpx 80rpx 80rpx;
		font-weight: bold;
		font-size: 32rpx;
		color: #999999;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.confirm-btn {
		color: #FFF;
	}
</style>